<?php

namespace Install;

use Coldwind\Addon;
use Coldwind\Module;

/**
 * @author ZXZ <zxz054321@163.com>
 */
class InstallModule extends Module {

    public function install() {
        $this->excuteSqlFile('install');

        M('Hooks')->addAll(Addon::getSystemHooks());

        M('Config')->addAll(array(
            array('name' => 'SITE_TITLE', 'title' => '网站标题', value => 'ColdWind'),
            array('name' => 'SITE_DESCRIPTION', 'title' => '网站描述', value => 'ColdWind开发框架'),
            array('name' => 'SITE_STATUS', 'title' => '网站状态', value => '1'),
            array('name' => 'SITE_ICP', 'title' => 'ICP备案号', value => ''),
        ));
    }

    public function uninstall() {
        
    }

}
